package com.yuanfeng.base.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName BaseDistributorGradeController
 * @Description
 * @Author hyq
 * @Date 2023/7/14 11:20
 * @Version 1.0
 **/
@RestController
@RequestMapping("base/distributorGrade")
public class BaseDistributorGradeController extends BaseController{

    /**
     * 更新等级
     * @param map
     * @return
     */
    @PostMapping(value = "/grade/update")
    public ResponseResult updateGrade(@RequestBody Map<String,Object> map) {
        ResponseResult result=baseDistributorGradeService.updateGrade(map);
        return result;
    }


    /**
     * 查询等级
     * @param map
     * @return
     */
    @PostMapping(value = "/grade/query")
    public ResponseResult queryGrade(@RequestBody Map<String,Object> map) {
        ResponseResult result = baseDistributorGradeService.queryGrade(map);
        return result;
    }
}
